<GenericInstanceSettings
  {instanceName}
  {options}
  label="{intl.notificationFilterSettings}"
/>
<script>
  import GenericInstanceSettings from './GenericInstanceSettings.html'
  import {
    NOTIFICATION_REBLOGS,
    NOTIFICATION_FAVORITES,
    NOTIFICATION_FOLLOWS,
    NOTIFICATION_MENTIONS,
    NOTIFICATION_POLLS,
    NOTIFICATION_SUBSCRIPTIONS
  } from '../../../_static/instanceSettings.js'

  export default {
    data: () => ({
      options: [
        {
          key: NOTIFICATION_FOLLOWS,
          label: 'intl.newFollowers',
          defaultValue: true
        },
        {
          key: NOTIFICATION_FAVORITES,
          label: 'intl.favorites',
          defaultValue: true
        },
        {
          key: NOTIFICATION_REBLOGS,
          label: 'intl.reblogs',
          defaultValue: true
        },
        {
          key: NOTIFICATION_MENTIONS,
          label: 'intl.mentions',
          defaultValue: true
        },
        {
          key: NOTIFICATION_POLLS,
          label: 'intl.pollResults',
          defaultValue: true
        },
        {
          key: NOTIFICATION_SUBSCRIPTIONS,
          label: 'intl.subscriptions',
          defaultValue: true
        }
      ]
    }),
    components: {
      GenericInstanceSettings
    }
  }
</script>
